|
Inprocess
Example 1: In-process main container
and out-of-process additional container.
Example 2: Out-of-process main container
and in-process additional containers.
This example shows how to start a JADE
runtime from within an external application. The InProcessTest class is
not a JADE agent, but has its
.
own main() method instead. When started,
the example launches a JADE main container on the local host, on port 8888,
and a peripheral container, both within the same JVM. An RMA agent is also
started. If the '-container' option is given, then two non-main container
are started that try to connect to an external main container that must
be already active on the local host, port 1099. Then the platform starts
and kills a DummyAgent and finally it starts the MobileAgent example. Using
this example and the regular jade.Boot loader, hybrid platforms
(i.e. platform that live partly in-process
and out-of-process) can be deployed. The two following examples list the
commands to issue in
order to create two sample hybrid platforms
a) java examples.inprocess.InProcessTest
(one main container and an additional one)
b) java jade.Boot -container -port
8888 (an out-of-process container, connecting to the in-process platform).
a) java jade.Boot -gui (on out-of-process
main container, listening on port 1099)
b) java examples.inprocess.InProcessTest
-container (an in-process container, connecting to the out-of-process platform).
JADE is a trademark of CSELT. JADE has been developed jointly by CSELT and the Computer Engineering Group of the University of Parma